// const express = require('express')
const express = require('./my-express/index')

const app = express()

// app.param('id', function (req, res, next, value, key) {
//     console.log(value, key)
//     next()
// })
// app.param('id', function (req, res, next, value, key) {
//     console.log(value, key)
//     next()
// })

// app.param('name', function (req, res, next, value, key) {
//     console.log(value, key)
//     next()
// })
// app.param('name', function (req, res, next, value, key) {
//     console.log(value, key)
//     next()
// })
app.get('/user/:id/:name/xxx', function (req, res) {
    res.end('success')
})

app.listen(3000, function () {
    console.log('server start port=3000')
})